package com.uphone.magicleafteacher.pro.adapter;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.uphone.magicleafteacher.R;
import com.uphone.magicleafteacher.util.CommonUtil;
import com.uphone.magicleafteacher.view.MyBaseViewHolder;
import com.uphone.magicleafteacher.vo.AudioWorkDetailBean;

import java.util.List;

public class PracticeAdapter extends BaseQuickAdapter<AudioWorkDetailBean.AudioWorkBean.ChaptersBean, MyBaseViewHolder> {

    public PracticeAdapter(@Nullable List<AudioWorkDetailBean.AudioWorkBean.ChaptersBean> data) {
        super(R.layout.item_practice, data);
    }

    @Override
    protected void convert(@NonNull MyBaseViewHolder helper, AudioWorkDetailBean.AudioWorkBean.ChaptersBean item) {
        helper.setImageView(mContext, R.id.img, CommonUtil.getImageUrl(item.getChapterPic()));
    }
}
